package com.xiaoyu.awakening.ai.search.api;

import com.xiaoyu.awakening.ai.search.model.AwkSearchContent;
import com.xiaoyu.awakening.ai.search.model.dto.SearchResultDTO;
import com.xiaoyu.awakening.ai.search.model.vo.SearchRequestVO;
import com.xiaoyu.awakening.common.core.dto.Result;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 检索
 *
 * @author wangxiaoyu
 * @since v1.0
 */
@RequestMapping("/api/v1/awk-search")
@Schema(name = "检索")
public interface IAwkSearchControllerApi {

    @PostMapping(value = "/search")
    @ResponseBody
    Result<SearchResultDTO<AwkSearchContent>> search(@RequestBody SearchRequestVO searchRequestVo);
}
